package org.blogwu.learn.designpattern.chapter18.v1;

public class Main extends LiJianPromotion {

    public static void main(String[] args) {
        PromotionActivity promotionActivity = null;

        String ss = "fanxian";
        if (ss.equals("fanxian")) {
            promotionActivity = new PromotionActivity(new FanXianPromotion());
            promotionActivity.executePromotion();
        } else if (ss.equals("lijian")) {
            promotionActivity = new PromotionActivity(new LiJianPromotion());
            promotionActivity.executePromotion();
        }
    }
}
